package spider.common;

import weibo4j.Weibo;

public class OathPrivider {
	
	public static Weibo getSinaWeiboInstance(){
		System.setProperty("weibo4j.oauth.consumerKey", Weibo.CONSUMER_KEY);
		System.setProperty("weibo4j.oauth.consumerSecret",
				Weibo.CONSUMER_SECRET);
		Weibo weibo = new Weibo();
		/*
		 * 此处需要填写AccessToken的key和Secret，可以从OAuthUpdate的执行结果中拷贝过来
		 */
		weibo.setToken("fa215104e29bada2f7fcae2a9200e888",
				"1b082671818aba6c02c8019de1f46f3d");
		return weibo;
	}

}
